<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class UserAction extends Action
{

    public function search()
    {
        $tUser = new Model('User');
        $userList = $tUser->select();
        $this->assign('userList',$userList);
    }


    public function save()
    {

        $tUser = D('User');

        $tUser->create();

        $result = $tUser->add();

        echo $result;

        $this->display('User/user');

    }
}

?>
